package com.diankangwo.util;


import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


public class AuthorizationInterceptor extends HandlerInterceptorAdapter {

    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
//        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>进入拦截器了<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<");
        Thread.sleep(5000);
        return true;
    }
}
